package com.duobaoyu.dby.supply.common.biz.remote.dto.order;

import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.List;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName CancelOrderDTO
 * @Description 取消订单DTO
 * @createTime 20:49:00 2022/07/13
 */
@Data
public class CancelOrderDTO implements Serializable {
	private static final long serialVersionUID = -2749674297173938501L;
	/**
	 * 供应链交易单号
	 */
	@ApiModelProperty(name = "supplyTradeSn", value = "供应链交易单号")
	private String supplyTradeSn;
	/**
	 * 供应链订单号
	 */
	@ApiModelProperty(name = "orderSnList", value = "供应链订单号")
	private List<String> orderSnList;

	/**
	 * 取消备注
	 */
	@ApiModelProperty(name = "cancelRemark", value = "取消备注")
	private String cancelRemark;

	public boolean check(){
		return StringUtils.isNotEmpty(supplyTradeSn) || CollectionUtils.isNotEmpty(orderSnList);
	}
}
